home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO023.dsk
/
FLAT.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
2KB
|
57 lines
10 HOME : TEXT
20 PRINT
30 PRINT "The INCIDENT RAY is the beam of light that hits the mirror."
35 PRINT
40 PRINT "The REFLECTION RAY is the beam of light leaving the mirror."
45 PRINT
50 PRINT "For example, if the beam of light hits the mirror at a 55 degree angle...."
55 PRINT
60 PRINT " | "
62 PRINT " | beam"
64 PRINT " | b"
66 PRINT " | b"
68 PRINT " | b"
70 PRINT " | b"
72 PRINT " | b"
74 PRINT " | b"
76 PRINT " | b"
78 PRINT " |b"
80 PRINT " |------------- Line perpendicular"
82 PRINT " |"
84 GOSUB 150
86 PRINT " Press any key."
88 GET KY$
89 HOME
90 PRINT "....then the reflected ray will leave the mirror at a 55 degree angle."
91 PRINT
92 PRINT " |"
93 PRINT " | beam"
94 PRINT " | b"
95 PRINT " | b"
96 PRINT " | b"
97 PRINT " | b"
98 PRINT " | b"
99 PRINT " |b"
100 PRINT " |------------- Line perpendicular"
101 PRINT " |b"
102 PRINT " | b"
103 PRINT " | b"
104 PRINT " | b"
105 PRINT " | b"
106 PRINT " | b"
107 PRINT " | beam"
108 PRINT " |"
109 PRINT
110 GOSUB 150
111 PRINT "Enter <P> to see the diagram of the flat mirror again or enter <N> to see what kind of mirror turns images upside down."
112 GET KY$
118 IF KY$ = "p" OR KY$ = "P" THEN PRINT CHR$(4);"run m1"
119 IF KY$ = "n" OR KY$ = "N" THEN PRINT CHR$(4);"run m2"
124 PRINT
125 PRINT "Please enter either <P> or <N> only."
126 PRINT
130 GOTO 112
150 FOR I = 0 TO 3000
152 J = 1
154 NEXT I
156 RETURN